/** 条件运算符 */
export const SYMBOLS = {
  LESS: "<",
  LESS_EQUAL: "<="
};

export const symbols = [
  { label: SYMBOLS.LESS, id: 1 },
  { label: SYMBOLS.LESS_EQUAL, id: 2 }
];

/** 特殊设置下拉, 是否刨除减免扣除 */
export const deducts = [
  { label: '扣除', value: true, id: 1 },
  { label: '不扣除', value: false, id: 2 }
];

export const types = [
  { id: 1, label: "为时长", types: [] },
  { id: 2, label: "为次数", types: [] },
  { id: 3, label: "按xx元每次", types: [4, 6, 10, 12, 15], metering: "元/次" },
  { id: 4, label: "按xx元每分钟", types: [4, 5, 10, 11], metering: "元/分钟" },
  { id: 5, label: "记请假", types: [4, 5, 6, 10, 11, 12, 15], metering: "小时", children: "请假扣款" },
  { id: 6, label: "记旷工", types: [4, 5, 6, 10, 11, 12, 15], metering: "小时" }
];

export const ladderOrSubsectionArr = [
  { id: 1, label: "阶梯扣款" },
  { id: 2, label: "分段扣款" }
];

/** 取值数组[form, formFormula] */
export const getValueKey = {
  1: [["setup1", "isExempt"], ["otherFormula"]],
  2: [["setup1", "isExempt"], ["otherFormula"]],
  3: [[], ["otherFormula"]],
  4: [["setup1", "isExempt", "setup2", "ladderOrSubsection"], ["steps"]],
  5: [["setup1", "isExempt", "ladderOrSubsection"], ["steps"]],
  6: [["setup1", "isExempt", "ladderOrSubsection"], ["steps"]],
  7: [["setup1", "isExempt"], ["otherFormula"]],
  8: [["setup1", "isExempt"], ["otherFormula"]],
  9: [[], ["otherFormula"]],
  10: [["setup1", "isExempt", "setup2", "ladderOrSubsection"], ["steps"]],
  11: [["setup1", "isExempt", "ladderOrSubsection"], ["steps"]],
  12: [["setup1", "isExempt", "ladderOrSubsection"], ["steps"]],
  13: [[], []],
  14: [["setup1", "isExempt"], ["otherFormula"]],
  15: [["setup1", "isExempt", "ladderOrSubsection"], ["steps"]],
  16: [["setup1", "isExempt"], ["otherFormula"]],
  17: [["salaryBaseNames", "proportion"], []],
  18: [["salaryBaseNames"], ["otherFormula"]],
  22: [["salaryBaseNames", "salaryType", "proportion"], ["otherFormula"]],
  23: [["salaryBaseNames"], ["calculationType", "otherFormula"]],
  24: [["salaryBaseNames", "salaryType", "proportion"], ["otherFormula"]],
  25: [["salaryBaseNames"], ["calculationType", "otherFormula"]],
  26: [["salaryBaseNames", "salaryType", "proportion"], ["otherFormula"]],
  27: [["salaryBaseNames"], ["calculationType", "otherFormula"]],
  28: [["salaryBaseNames", "salaryType", "proportion", "setup1", "isExempt"], ["otherFormula"]],
  29: [[], []]
};
export const names = {
  chidaokoukuan: "迟到",
  zaotuikoukuan: "早退"
};

export const stepKeys = ["minValue", "operatorType1", "operatorType2", "maxValue", "calculationType", "otherFormula"];
